<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>我的问答 - 会员中心 -  <?php echo C('UU_SITE_NAME');?></title>
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/user.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.dialog.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/common.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_TPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script type="text/javascript">
var ajaxURL="<?php echo RU('ajax/view');?>";
</script>
</head>

<body>

<div class="pagetop">
		<div class="main">
          <div class="welcome link_orange" id="J_welcome">欢迎登录 <?php echo C('UU_SITE_NAME');?>！请 <span><a href="Javascript: void(0)" class="J_user_login">登录</a></span>或<span><a href="Javascript: void(0)" class="J_user_reg">注册</a></span></div>
          <div class="menu link_gray6"><a href="<?php echo C('UU_SITE_DOMAIN');?>/" class="home">网站首页</a>
		  
		  <!-- <a href="#" class="ranking">排行榜</a> <a href="#" class="category">问题分类</a> <a href="#" class="mall">积分商城</a> -->
		   
		   </div>
        	<div class="clear"></div>
        </div>
</div>

<div class="header">
  <div class="logo"><a href="/"><img src="http://www.zgxmall.com/data/upload/mall/common/05999185122820637.png"  alt="<?php echo C('UU_SITE_NAME');?>" border="0"/></a></div>
  <div class="so"></div>
  <div class="clear"></div>
</div>

<div class="pagenav">
  <div class="navmain link_white">
  <?php $tag_nav_class = new \Common\Taglib\nav();$nav = $tag_nav_class->run(array('listname'=>'nav','cache'=>'0',)); ?>
			<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><div class="li  <?php if($page_as == $nav['pagealias']): ?>select<?php endif; ?>"><a href="<?php echo ($nav["url"]); ?>" target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["title"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="clear"></div>
  </div>
</div>

<div class="usermain">
  <div class="mleft">
<div class="mu">
	<?php if($user["isadmin"] == '1'): ?><a class="adminbtn" href="<?php echo RU('admin/index');?>" title="后台登录"></a><?php endif; ?>
  <div class="pic"><a href="<?php echo RU('user/set_avatar');?>"><img src="<?php echo ($user["avatar"]); ?>" border="0"></a></div>
			  
			  <a class="uname" href="<?php echo RU('user/set_basic');?>"><?php echo ($user["username"]); ?></a>
			  
			  <div class="exp link_gray3">
					<span class="userLV">LV<?php echo ($user["exp_lv"]); ?></span>经验值：<a href="<?php echo RU('user/set_exp');?>"><?php echo ($user["exp"]); ?>/<?php echo ($lv["exp_max"]); ?></a>
	  </div>
	 
			<div class="progress">
			  <div class="nblock" style="width:<?php echo ($user["percentage"]); ?>"></div>
			</div>
  
	        <div class="gold link_gray3"><?php echo C('UU_GOLD_BYNAME');?>：<a href="<?php echo RU('user/set_gold');?>"><?php echo ($user["gold"]); ?></a></div>			
				
			<div class="lnav">
			<a href="<?php echo RU('user/index');?>" class="mli t0 <?php if($nav_select == 'index'): ?>select<?php endif; ?>">会员中心</a>
			<a href="<?php echo RU('user/question');?>" class="mli t1 <?php if($nav_select == 'question'): ?>select<?php endif; ?>">我的问答</a>
			<a href="<?php echo RU('user/article');?>" class="mli t2 <?php if($nav_select == 'article'): ?>select<?php endif; ?>">我的分享</a>
			<a href="<?php echo RU('user/task');?>" class="mli t3 <?php if($nav_select == 'task'): ?>select<?php endif; ?>">我的任务</a>
			<a href="<?php echo RU('user/msg');?>" class="mli t4 <?php if($nav_select == 'msg'): ?>select<?php endif; ?>">我的消息</a>
			<a href="<?php echo RU('user/set_basic');?>" class="mli t5 <?php if($nav_select == 'set'): ?>select<?php endif; ?>">账号设置</a>
			</div>
			<a class="userlogout J_user_logout" href="Javascript:void(0)">退出登录</a>
		   
</div>
  </div>
  
  <div class="mright">
  
    
	
    <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">我的问答</div>
<a class="snav <?php if($mods == '1'): ?>select<?php endif; ?>" href="<?php echo RU('user/question',array('mods'=>1));?>">我的提问</a>
<a class="snav <?php if($mods == '2'): ?>select<?php endif; ?>" href="<?php echo RU('user/question',array('mods'=>2));?>">我的回答</a>
 

			<div class="clear"></div>
	  </div>
	  
	  
	  <!--问题列表 -->
	  <?php if(($mods) == "1"): ?><div class="myquestion">
		  <div class="tnav link_gray3">
		  <a href="<?php echo RU('user/question',array('type'=>''));?>" <?php if(($type) == ""): ?>class="select"<?php endif; ?>>全部提问</a>
		  <span>|</span>
		  <a href="<?php echo RU('user/question',array('type'=>4));?>" <?php if(($type) == "4"): ?>class="select"<?php endif; ?>>待解决</a>
		  <span>|</span>
		  <a href="<?php echo RU('user/question',array('type'=>3));?>" <?php if(($type) == "3"): ?>class="select"<?php endif; ?>>已解决</a></div>
		  
		  
		  
		  
		  <!-- 读取问题 -->
<?php $tag_question_class = new \Common\Taglib\question();$question = $tag_question_class->run(array('listname'=>'question','type'=>$_GET['type'],'uid'=>$uid,'page'=>'1','num'=>'10','cache'=>'0',)); ?> 
<?php if(is_array($question["list"])): $i = 0; $__LIST__ = $question["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="qlist">
			<?php if($li["issolve"] == '1' ): ?><div class="td1 type2"><span><?php echo ($li["answercount"]); ?></span><br>解决</div>
			  <?php else: ?>
			  		<?php if($li["answercount"] == 0 ): ?><div class="td1 type0"><span><?php echo ($li["answercount"]); ?></span><br>回答</div>
					<?php elseif($li["answercount"] > 0): ?>
					<div class="td1 type1"><span><?php echo ($li["answercount"]); ?></span><br>回答</div><?php endif; endif; ?>
					<div class="td2"><span><?php echo ($li["click"]); ?></span><br>浏览</div>
					<div class="td3">
							<h4 class="link_gray3"><?php if($li["reward"] > 0 ): ?><span class="reward"><?php echo ($li["reward"]); ?></span><?php endif; ?><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a></h4>
							
							 <div class="author link_gray3">
							 <?php if($li["answeruid"] > 0 ): ?><a href="<?php echo ($li["aurl"]); ?>"  target="_blank"><?php echo ($li["aname"]); ?></a> <span> 回复于 <?php echo ($li["answertimestr"]); ?></span> 
							 <?php else: ?>
							  <a href="<?php echo ($li["uurl"]); ?>" target="_blank"><?php echo ($li["uname"]); ?></a><span> 发布于 <?php echo ($li["addtimestr"]); ?></span><?php endif; ?>
							 </div>
							 	<?php if(is_array($li["tags"])): $i = 0; $__LIST__ = $li["tags"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tagsli): $mod = ($i % 2 );++$i;?><a class="tag" href="<?php echo ($tagsli["tagurl"]); ?>" target="_blank"><?php echo ($tagsli["tag"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
							<a class="del" href="<?php echo RU('user/question_del',array('id'=>$li['id']));?>" onclick="return confirm('你确定要删除吗？')">删除</a>
				   </div>
					<div class="clear"></div>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
<?php if(empty($question["list"])): ?><div class="infoempty"> 暂时木有内容呀～～</div><?php endif; ?>
 <!-- -->
 <!-- -->
 <div class="uupage"><?php echo ($question["page"]); ?></div><?php endif; ?>
  <!-- 问题列表结束-->
  
  
	<?php if(($mods) == "2"): ?><!-- 回答列表-->
	 <div class="myquestion">
		  <div class="tnav link_gray3">
		  <a href="<?php echo RU('user/question',array('mods'=>2,'optimal'=>''));?>" <?php if(($optimal) == ""): ?>class="select"<?php endif; ?>>全部回答</a>
		  <span>|</span>
		  <a href="<?php echo RU('user/question',array('mods'=>2,'optimal'=>1));?>" <?php if(($optimal) == "1"): ?>class="select"<?php endif; ?>>已采纳</a>
		  <span>|</span>
		  <a href="<?php echo RU('user/question',array('mods'=>2,'optimal'=>0));?>" <?php if(($optimal) == "0"): ?>class="select"<?php endif; ?>>待采纳</a></div>
	
	 <?php $tag_answer_class = new \Common\Taglib\answer();$a = $tag_answer_class->run(array('listname'=>'a','uid'=>$uid,'optimal'=>$_GET['optimal'],'page'=>'1','num'=>'10','cache'=>'0',)); ?> 
	 <?php if(is_array($a["list"])): $i = 0; $__LIST__ = $a["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="alist link_gray6">
		<div class="link_blue">
		<?php if(!empty($li["question"]["issolve"])): ?><span class="issolve">已解决</span><?php endif; ?>
		<?php if(!empty($li["question"]["title"])): ?><a href="<?php echo ($li["question"]["url"]); ?>" target="_blank"><?php echo ($li["question"]["title"]); ?></a>
		<?php else: ?>
		<a href="javascript:void(0)" target="_blank" style="text-decoration:line-through">问题已经被删除</a><?php endif; ?>
		<?php if(!empty($li["question"]["reward"])): ?><span class="reward"><?php echo ($li["question"]["reward"]); ?></span><?php endif; ?>
		</div>
		<div class="text substring"><?php echo ($li["content"]); ?></div>
		 <a href="<?php echo ($li["user"]["user_url"]); ?>" target="_blank"><?php echo ($li["user"]["username"]); ?></a><span> 回答于 <?php echo ($li["addtime_str"]); ?></span> 
		<?php if(($li["optimal"]) == "1"): ?><span class="optimal">最佳答案</span><?php endif; ?>
		</div><?php endforeach; endif; else: echo "" ;endif; ?>
	  <?php if(empty($a["list"])): ?><div class="infoempty"> 暂时木有内容呀～～</div><?php endif; ?>
	<!-- -->
 <div class="uupage"><?php echo ($a["page"]); ?></div><?php endif; ?>
	
	<!-- 回答列表结束-->
  
	
		  
		</div>
	    
					
		
		
    </div>
	
	 
	
	
  </div>
   <div class="clear"></div>
</div>
<div class="footernav link_gray6">
<a href="<?php echo C('UU_SITE_DOMAIN');?>/">首页</a>
<?php $tag_intro_class = new \Common\Taglib\intro();$li = $tag_intro_class->run(array('listname'=>'li','cache'=>'0',)); ?>
<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><span>|</span><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
</div>  
<div class="footertxt link_gray3">
<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo C('UU_ICP');?></a>
Powered By <a href="http://www.zgxmall.com" target="_blank"><span class="by">中港星企业服务论坛</span><span class="version"><?php echo C('UU_VERSION');?></span></a>
<?php echo C('UU_COPYRIGHT');?>
<br />
联系地址：深圳市罗湖区人民南路国贸大厦17、19楼&nbsp;&nbsp;&nbsp;&nbsp;联系电话：0755-82211688
 
<div class="statistics"><?php echo C('UU_STATISTICS');?></div>
</div>

 
</body>
</html>